import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/role/list',
    method: 'get',
    params: data
  })
}

export function handle(data) {
  return request({
    url: '/role/handle',
    method: 'post',
    data: data
  })
}

export function getMenuNode(data) {
  return request({
    url: '/role/menu/node',
    method: 'get',
    params: data
  })
}

export function getStore(data) {
  return request({
    url: '/role/store',
    method: 'get',
    params: data
  })
}

export function deleteRole(data) {
  return request({
    url: '/role/delete',
    method: 'post',
    data: data
  })
}
